<%@page import="model.AccountImp"%>
<%@page import="model.entity.Account"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="tab_container">
        <div id="tab2" class="tab_content" style="display: block;">
           <h2>Add credit</h2>
     <%
    
    AccountImp acim = new AccountImp();  
    Account acc = (Account) request.getAttribute("acccredit");
 
%>  
                <form action="<c:url value="<%= "/admin/account/credit/" + acc.getUsername() %>"/>" method="POST" name="frmedit" >
    
              <p>
                  <label>Username:  </label><br/>
                  <input type="text" readonly="true" class="text small" name="username" value="<%= acc.getUsername() %>"> 
              </p>
              <p>
                  <label>Cardnumber:  </label><br/>
                  <input type="text" class="text small" name="cardnumber" value="<%= acc.getCardnumber() %>"> 
                  
              </p>
              <p>
                  <label>Credit  </label><br/>
                  <input type="text" class="text small" name="credit"> 
              </p>

                <p>
          	<input type="submit" class="submit" value="Submit">
       		</p>
                
           </form>

        </div>
</div>